//
//  FirstAuditingTransferOfFundsCell.m
//  优学荟管理系统
//
//  Created by 星道 on 17/7/11.
//  Copyright © 2017年 星道三好. All rights reserved.
//

#import "FirstAuditingTransferOfFundsCell.h"

@implementation FirstAuditingTransferOfFundsCell

{
    IBOutlet UILabel *_Status;
    IBOutlet UILabel *_Time;
    IBOutlet UILabel *_OID;
    IBOutlet UILabel *_OName;
    IBOutlet UILabel *_OSONO;
    IBOutlet UILabel *_Price;
}




/**
 1100通过 1101拒绝 1102查看详情
 */
- (IBAction)ClickButton:(UIButton *)sender
{
    if (self.ClickButton)
    {
        self.ClickButton (sender);
    }
}



- (void)setModel:(FirstAuditingModel *)Model
{
    _Model = Model;

    _Status.text = [self GetStatusStr:[Model.withdrawFlag integerValue]];
    _Time.text   = Model.withdrawTime;
    _OID.text    = [Model.ID stringValue];
    _OName.text  = Model.websiteName;
    _OSONO.text  = Model.withdrawNo;
    _Price.text  = [NSString stringWithFormat:@"%@元",[Model.withdrawAmount stringValue]];
}

- (NSString *)GetStatusStr:(NSInteger)Index
{
    // (提现状态）  0：提现中，1：财务拒绝，2：财务同意，3：终审拒绝，4：终审同意，5：已结算
    switch (Index)
    {
        case 0:return @"提现中";
        case 1:return @"财务拒绝";
        case 2:return @"财务同意";
        case 3:return @"终审拒绝";
        case 4:return @"终审同意";
        case 5:return @"已提现";
        default:return @""; break;
    }
}
@end
